package com.micro.service.gateway.web.tps;

import javax.servlet.http.HttpServletRequest;

public interface TPSLimiter {

    /**
     * 根据 tps 限流规则判断是否限制此次调用.
     *
     * @param httpServletRequest
     * @return true 则允许调用，否则不允许
     */
    boolean isAllowable(HttpServletRequest httpServletRequest);

}
